package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import com.huawei.appgallery.foundation.ui.css.CSSDeclaration;
import com.huawei.appgallery.foundation.ui.css.adapter.CSSPropertyName;
import com.huawei.appgallery.foundation.ui.css.adapter.type.CSSMonoColor;
import com.huawei.appgallery.foundation.ui.css.adapter.type.CSSValue;
import com.huawei.appmarket.framework.widget.RenderImageView.b;
import o.cgz;
import o.eqx;

public class ImmersePosterCard extends PosterCard implements b {
    public ImmersePosterCard(Context context) {
        super(context);
        this.ˋˊ = 1.5788999795913696d;
        this.ˊˊ = 3.0d;
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        this.ˋ.setListener(this);
        return this;
    }

    public void ˊ(ImageView imageView, String str, String str2, LayoutParams layoutParams) {
        eqx.ˎ(imageView, str);
    }

    public boolean ˋ(CSSDeclaration cSSDeclaration) {
        CSSValue propertyValue = cSSDeclaration.getPropertyValue(CSSPropertyName.BACKGROUND_COLOR);
        if (propertyValue == null || !(propertyValue instanceof CSSMonoColor)) {
            return false;
        }
        this.ʼ.setRenderColor(((CSSMonoColor) propertyValue).getColor());
        return true;
    }
}
